﻿@{
    ViewBag.Title = "增加测试";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}


<script src="~/Scripts/jmeditor/JMEditor.js"></script>
<div>
    <h2 class="head-tietle">增加测试</h2>
    @using (Html.BeginForm("AddCourseQuestion", "Admin", FormMethod.Post, new { id = "frmAddCourseQuestion" }))
    {
        @Html.AntiForgeryToken()
    <input type="hidden" name="CourseID" value="@ViewBag.CourseID" />
        <table class="detail-table">
            <tr>
                <td class="row-title">内容</td>
                <td>
                    <div id="content" contenteditable="true" class="questionContent">
                        编辑题目
                    </div>
                    @*<textarea name="Content" class="textbox w-3" contenteditable="true"></textarea>*@
                    <input type="hidden" name="Content" id="txtcontent" />
                </td>
            </tr>
            <tr>
                <td class="row-title">选项</td>
                <td>
                    <table>
                        <thead>
                            <tr>
                                <td style="width:30px;">选项名称</td>
                                <td>选项内容</td>
                                <td>操作</td>
                            </tr>
                        </thead>
                        <tbody id="lstOption">
                            <tr>
                                <td><input type="text" value="A" class="textbox w-0-6" disabled="disabled" /></td>
                                <td>
                                    <input name="option" type="text" class="textbox w-3 nullable" />
                                </td>
                                <td></td>
                            </tr>
                        </tbody>
                    </table>
                    <input type="hidden" value="0" id="txtOptionIndex" />
                    <a href="java:void(0)" id="btnAddOption">增加</a>
                </td>
            </tr>

            <tr>
                <td class="row-title">正确选项</td>
                <td>
                    <select name="RightAnswer" class="textbox w-2">
                        <option value="A">A</option>
                        <option value="B">B</option>
                        <option value="C">C</option>
                        <option value="D">D</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="row-title">备注</td>
                <td>
                    <textarea name="Remark" class="textbox" style="height:60px" cols="100"></textarea>
                </td>
            </tr>

        </table>
        <p><input type="submit" value="增加" class="button blue" /></p>
    }
</div>


